package com.zenithmind.exam.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 错题本实体类
 * 
 * @author ZenithMind
 * @since 2024-07-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("exam_wrong_question")
public class WrongQuestion {

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private String userId;

    /**
     * 题目ID
     */
    @TableField("question_id")
    private String questionId;

    /**
     * 考试记录ID
     */
    @TableField("exam_record_id")
    private String examRecordId;

    /**
     * 错误次数
     */
    @TableField("wrong_count")
    private Integer wrongCount;

    /**
     * 最后错误时间
     */
    @TableField("last_wrong_time")
    private LocalDateTime lastWrongTime;

    /**
     * 是否已掌握 0-未掌握 1-已掌握
     */
    @TableField("is_mastered")
    private Integer isMastered;

    /**
     * 掌握时间
     */
    @TableField("master_time")
    private LocalDateTime masterTime;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
